﻿@model Forest.Cat.Admin.Models.Resumes.ResumeModel
@{
    ViewBag.Title = "我的简历";

    Layout = "~/Administration/Views/Shared/_ResumeRoot.cshtml";
    
}
<div class="resumeoverview_box">
    <div class="resumeoverview_name">
        <h3>
            @Model.FullName
            @if (Model.PrivacyStatus == 1)
            { <span>[简历公开]</span> }
            else
            { <span style="color: Red;">[简历隐藏]</span>}</h3>
        <p>
            @Model.EducationLevelName</p>
        <p>
            @Model.Province2Name @Model.City2Name @Model.District2Name</p>
        <div class="edit">
            @Html.ActionLink("[编辑]", "ResumeEdit", new { Model.Id }, null)</div>
    </div>
    <div class="resumeoverview_messages">
        <div class="Self_evaluation">
            <div class="Self_evaluation_title">
                <p>
                    自我评价</p>
                <span>@Html.ActionLink("[编辑]", "PersonalStatementEdit", new { Model.Id }, null)</span>
                <div class="cr">
                </div>
            </div>
            <div class="Self_evaluation_box">
                <p>
                    @Model.PersonalStatement</p>
            </div>
        </div>
        <div class="Job_experience">
            <div class="Job_experience_title">
                <p>
                    工作经验</p>
                <div class="cr">
                </div>
            </div>
            @foreach (var work in Model.WorkExperiences)
            {
                <div class="Job_experience_box">
                    <h3>
                        @work.JobTitle</h3>
                    @using (Html.BeginForm("WorkDelete", "Resume", FormMethod.Post))
                    {
                        <span>@Html.ActionLink("[编辑]", "WorkEdit", new { id = work.Id, returnUrl = Request.Url.PathAndQuery }, null)
                            @Html.Hidden("WorkId", work.Id)
                            @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
                            <input type="submit" value="删除" onclick="return confirm('确定删除？');" />
                        </span>
                    }
                    <p>
                        @work.CompanyName</p>
                    <p>
                        @work.StartDate.ToString("yyyy年MM月") --
                        @if (work.EndDate.HasValue)
                        {
                            work.EndDate.Value.ToString("yyyy年MM月");
                        }</p>
                    <div>
                        @work.Description</div>
                    <p>
                        职位分类：@work.CategoryName</p>
                </div>
            }
            <div class="add_experiece">
                <b>+</b>@Html.ActionLink("[添加工作经验]", "WorkAdd", new { resumeId = Model.Id, returnUrl = Request.Url.PathAndQuery }, null)</div>
        </div>
        <div class="Level_Education">
            <div class="Level_Education_title">
                <p>
                    教育程度</p>
                <div class="cr">
                </div>
            </div>
            @foreach (var education in Model.Educations)
            {
                <div class="Level_Education_box">
                    <h3>
                        @education.SchoolName</h3>
                    @using (Html.BeginForm("EducationDelete", "Resume", FormMethod.Post))
                    {
                        <span>@Html.ActionLink("[编辑]", "EducationEdit", new { id = education.Id, returnUrl = Request.Url.PathAndQuery }, null)
                            @Html.Hidden("EducationId", education.Id)
                            @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
                            <input type="submit" value="删除" onclick="return confirm('确定删除？');" />
                        </span>
                    }
                    <p>
                        @education.Major1Name/@education.Major2Name</p>
                    <p>
                        @education.StartDate.ToString("yyyy年MM月") --
                        @if (education.EndDate.HasValue)
                        {
                            education.EndDate.Value.ToString("yyyy年MM月");
                        }</p>
                    <div>
                        @education.Notes</div>
                </div>
            }
            <div class="add_experiece">
                <b>+</b>@Html.ActionLink("[添加教育程度]", "EducationAdd", new { resumeId = Model.Id, returnUrl = Request.Url.PathAndQuery }, null)</div>
        </div>
        <div class="Training_experience">
            <div class="Training_experience_title">
                <p>
                    培训经历</p>
                <div class="cr">
                </div>
            </div>
            @foreach (var training in Model.Trainings)
            {
                <div class="Training_experience_box">
                    <h3>
                        @training.Institution</h3>
                    @using (Html.BeginForm("TrainingDelete", "Resume", FormMethod.Post))
                    {
                        <span>@Html.ActionLink("[编辑]", "TrainingEdit", new { training.Id, returnUrl = Request.Url.PathAndQuery }, null)
                            @Html.Hidden("TrainingId", training.Id)
                            @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
                            <input type="submit" value="删除" onclick="return confirm('确定删除？');" />
                        </span>
                    }
                    <p>
                        @training.Course/@training.Location</p>
                    <p>
                        @training.StartDate.ToString("yyyy年MM月") --
                        @if (training.EndDate.HasValue)
                        {
                            training.EndDate.Value.ToString("yyyy年MM月");
                        }</p>
                    <p>
                        @training.Qualification</p>
                    <div>
                        @training.Notes</div>
                </div>
            }
            <div class="add_experiece">
                <b>+</b>@Html.ActionLink("[添加培训经历]", "TrainingAdd", "Resume", new { resumeId = Model.Id }, null)</div>
        </div>
        <div class="Skills">
            <div class="Skills_title">
                <p>
                    技能特长</p>
                <div class="cr">
                </div>
            </div>
            @foreach (var skill in Model.Skills)
            {
                <div class="Skills_box">
                    <h3>
                        @skill.SkillName</h3>
                    @using (Html.BeginForm("SkillDelete", "Resume", FormMethod.Post))
                    {   
                        <span>@Html.ActionLink("[编辑]", "SkillEdit", new { skill.Id, returnUrl = Request.Url.PathAndQuery }, null)
                            @Html.Hidden("SkillId", skill.Id)
                            @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
                            <input type="submit" value="删除" onclick="return confirm('确定删除？');" />
                        </span>
                    }
                    <div>
                        @skill.Body</div>
                </div>
            }
            <div class="add_experiece">
                <b>+</b>@Html.ActionLink("[添加技能特长]", "SkillAdd", "Resume",
                new { resumeId = Model.Id, returnUrl = Request.Url.PathAndQuery }, null)</div>
        </div>
        <div class="Certificate">
            <div class="Certificate_title">
                <p>
                    证书</p>
                <div class="cr">
                </div>
            </div>
            @foreach (var certificate in Model.Certifications)
            {
                <div class="Certificate_box">
                    <h3>
                        @certificate.QualifiedCertificationName</h3>
                    @using (Html.BeginForm("CertificationDelete", "Resume", FormMethod.Post))
                    {
                        <span>@Html.ActionLink("[编辑]", "CertificationEdit", new { id = certificate.Id, returnUrl = Request.Url.PathAndQuery }, null)
                            @Html.Hidden("CertificationId", certificate.Id)
                            @Html.Hidden("returnUrl", Request.Url.PathAndQuery)
                            <input type="submit" value="删除" onclick="return confirm('确定删除？');" />
                        </span>
                    }
                    <p>
                        @certificate.DateQualified.ToString("yyyy年MM月") 取得</p>
                    <div>
                        @certificate.Score</div>
                </div>
            }
            <div class="add_experiece">
                <b>+</b>@Html.ActionLink("[添加证书]", "CertificationAdd", new { resumeId = Model.Id, returnUrl = Request.Url.PathAndQuery }, null)</div>
        </div>
        <div class="Job_intention">
            <div class="Job_intention_title">
                <p>
                    求职意向</p>
                <span>@Html.ActionLink("[编辑]", "CareerGoalEdit", new { @Model.Id, returnUrl = Request.Url.PathAndQuery }, null)</span>
                <div class="cr">
                </div>
            </div>
            <div class="Job_intention_box">
                <ul>
                    <li>工作类型：@Model.CareerGoal.DesiredJobTypeName</li>
                    <li>工作地点：@Model.CareerGoal.DesiredLocationName</li>
                    <li>从事行业：@Model.CareerGoal.DesiredIndustryName</li>
                    <li>职位分类：@Model.CareerGoal.DesiredOccupationName</li>
                    <li>公司性质：@Model.CareerGoal.DesiredCompanyTypeName</li>
                    <li>薪水范围(月薪)：@Model.CareerGoal.DesiredSalaryName 元/月</li>
                </ul>
                @* <table cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            工作类型：
                        </td>
                        <td>
                            @Model.CareerGoal.DesiredJobTypes
                        </td>
                    </tr>
                    <tr>
                        <td>
                            工作地点：
                        </td>
                        <td>
                            @Model.CareerGoal.DesiredLoactions
                        </td>
                    </tr>
                    <tr>
                        <td>
                            从事行业：
                        </td>
                        <td>
                            @Model.CareerGoal.DesiredIndustries
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" style="padding-top: 5px;">
                            职位分类：
                        </td>
                        <td>
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        @Model.CareerGoal.DesiredOccupations
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            公司性质：
                        </td>
                        <td>
                            @Model.CareerGoal.DesiredCompanyTypes
                        </td>
                    </tr>
                    <tr>
                        <td>
                            薪水范围：
                        </td>
                        <td>
                            @Model.CareerGoal.CurrentRevenueName 元/月
                        </td>
                    </tr>
                    <tr>
                        <td>
                            期望薪水：
                        </td>
                        <td>
                            @Model.CareerGoal.DesiredSalaryName 元/月
                        </td>
                    </tr>
                </table>*@
            </div>
        </div>
    </div>
    <div class="cl">
    </div>
</div>
